<?php

class Circle
{
    private $r;
    private $d='abc';

    public function _construct($r){
        $this->r=$r;
    }

    public function _clone(){
        $this->r=10;
    }
    public function _toString()
    {
        return 'circle.r='.$this->r;

    }
    public function _call($methodname,$args){
        die("你".$methodname."不存在!");
    }
    public function getArea(){

    }
    public function _sleep(){
        return array("r");
    }

}

$c=new Circle(r:3);
$str=seralize($c);
echo $str;
$d=unserialize($str);
echo"<br/>";
var_dump($d);
/*
echo $c;
print $c;
$e=$c->getArea();
*/
?>